/*
 * x264_output.h
 *
 *  Created on: 2011-6-22
 *      Author: Administrator
 */

#ifndef X264_OUTPUT_H_
#define X264_OUTPUT_H_

#include "x264.h"

/*written by jinlei_20110622*/

int  parse_output( int argc, char **argv, x264_param_t *param, void *opt );
int  init_encoder(x264_param_t * param, void* opt,
		                                         x264_t* h,  void* pulldown,
		                                         int64_t* ticks_per_frame, int64_t *i_start, int * i_file);
int  encode_output(x264_t* h, void*opt, void *pulldown, x264_picture_t* pic_in,
		                                             int64_t * largest_pts, int64_t* second_largest_pts,
		                                             int i_frame,int64_t ticks_per_frame);
void  encoder_close(x264_t * h, void*opt, const int64_t largest_pts, const int64_t second_largest_pts,int64_t* i_end);
int   x264_threading_init_vc(void);

#endif /* X264_OUTPUT_H_ */
